
#include<stdio.h>
#include<string.h>
struct fs
{
      double  m;//m为真部
      double  n;//n为虚部
};
int main()
{
      double z, x;
      struct fs num1;
      struct fs num2;
      scanf("%lf %lf %lf %lf", &num1.m, &num1.n, &num2.m, &num2.n);
      z = num1.m * num2.m - num1.n * num2.n;
      x = num1.m * num2.n + num1.n * num2.m;
      printf("%.2lf %.2lf\n",z,x);
      return 0 ;
}